import commonRoutes from '@common/router/routes';
import modules from '@modules';

let list = [];
list.push(...commonRoutes);
modules.filter(module => module !== 'package').forEach(module => {
    let data = require(`../../${module}/router/routes`).default;
    list.push(...data);
});
let routes = new Set(list);
export default routes;
